package com.smile.config;

import com.smile.util.SnowFlakeIdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
* 分布式ID配置
*
* @description:
  * @author: tanjialong
  * @date: 2025/12/5 13:51

**/
@Configuration
public class IdGenerateConfig {

    @Bean
    public SnowFlakeIdWorker snowFlakeIdWorker() {
        return new SnowFlakeIdWorker(0, 0);
    }
}
